package com.example.administrator.activity.test.note;

import java.util.Objects;

public class NoteBean {
    private int id;
    private String content;
    private String time;

    public NoteBean() {
    }

    public NoteBean(String content, String time) {
        this.content = content;
        this.time = time;
    }

    public NoteBean(int id, String content, String time) {
        this.id = id;
        this.content = content;
        this.time = time;
    }

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public String getContent() {
        return content;
    }

    public void setContent(String content) {
        this.content = content;
    }

    public String getTime() {
        return time;
    }

    public void setTime(String time) {
        this.time = time;
    }

    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;
        NoteBean noteBean = (NoteBean) o;
        return id == noteBean.id &&
                Objects.equals(content, noteBean.content) &&
                Objects.equals(time, noteBean.time);
    }

    @Override
    public int hashCode() {

        return Objects.hash(id, content, time);
    }

    @Override
    public String toString() {
        return "NoteBean{" +
                "id=" + id +
                ", content='" + content + '\'' +
                ", time='" + time + '\'' +
                '}';
    }
}
